﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace BuildHelper.Work.Tools.Forms
{
    public partial class FormJavaKlasy : XtraForm
    {
        public FormJavaKlasy()
        {
            InitializeComponent();
        }

        public FormJavaKlasy(string txt):this()
        {
            EditValue = txt;
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            DialogResult = System.Windows.Forms.DialogResult.Cancel;
        }
        public string EditValue
        {
            get;
            private set;
        }
        private void btnOk_Click(object sender, EventArgs e)
        {
            if (ValidateAll())
            {
                EditValue = memoEdit1.Text;
                DialogResult = System.Windows.Forms.DialogResult.OK;
            }
        }
        protected virtual bool ValidateAll()
        {
            return true;
        }
    }
}
